package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.entity.UserEntity;
import com.project.entity.UserRecordEntity;
import org.apache.tomcat.jni.User;

import java.util.List;

public interface IUserService {

    /**
     * 根据输入的客户名称，经营的范围动态查询，返回客户分页对象
     * @param pageNO
     * @return
     */
    IPage<UserEntity> findByItem(int pageNO,
                                 int verifyStatus,int pageSize);


    /***
     * 根据客户id查询客户，返回客户对象
     * @param
     * @return
     */
    UserRecordEntity findById(long id);

    /**
     * 修改客户的状态
     *
     * @param customerId
     * @param verifyStatus
     * @return
     */
    void updateStatus(long customerId, int verifyStatus,String cause);

    public List<UserRecordEntity> findByHistory(long userRef);
    //通过用户编号找用户
    public UserEntity findByUserRef(Long userRef,Double addMoney);
}
